package com.ffapp.rainmonitorcustom.bean;


import com.alibaba.fastjson.annotation.JSONField;

import java.util.ArrayList;

public class PicListBean extends BaseListBeanBc {

    @JSONField(name = "data")
    private ArrayList<PicListData> list = new ArrayList<PicListData>();

    public ArrayList<PicListData> getList() {
        return list;
    }

    public void setList(ArrayList<PicListData> list) {
        this.list = list;
    }

    public void addListBean(PicListBean listbean) {
        if (listbean == null)
            return;
        if (this.getCurrentPage() == INIT_PAGE) {
            setList(listbean.getList());
        } else {
            if (list == null)
                list = new ArrayList<PicListData>();
            list.addAll(listbean.getList());
        }
        setListBeanData(listbean);
    }


    public ArrayList<String> getListPic(){
        ArrayList<String> listStr = new ArrayList<>();
        for(PicListData data:list){
            listStr.add(data.getPhotourl_Real());
        }
        return listStr;
    }

}
